package com.qfedu.hotelssm.service.intf;

import com.qfedu.hotelssm.dto.CtOrderDetailDto;
import com.qfedu.hotelssm.entity.CtOrderDetail;
import com.qfedu.hotelssm.vo.PageBean;
import com.qfedu.hotelssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author dzl
 * @date 2022/8/29 14:16
 */
public interface CtOrderDetailService {
    R save(CtOrderDetail orderDetail);
    R del(int id);
    PageBean page(String userid,int page,int limit);
    R update(CtOrderDetail orderDetail);
    //导出
    List<CtOrderDetailDto> all();
    /*导入-批量增加*/
    R upload(MultipartFile file) throws IOException;
    //批量删除
    R delIds(int[] ids);
    //根据菜id进行分类统计
    R kindTj();

}
